package com.googlecode.maratische.google.listeners;

import java.util.ArrayList;
import java.util.List;

public class SpinnerObservable {

	List<SpinnerListener> listeners = new ArrayList<SpinnerListener>();
	
	public void addObserver(SpinnerListener listener) {
		listeners.add(listener);
	}
	
	public void spinnerEnable() {
		for (SpinnerListener listener : listeners) {
			listener.spinnerEnable();
		}
	}
	
	public void spinnerDisable() {
		for (SpinnerListener listener : listeners) {
			listener.spinnerDisable();
		}
	}

}
